package Exercises;

import java.util.Scanner;

public class Task11 {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		
		System.out.println("Please add a K number: ");
		
		int K = sc.nextInt();
		
		int n = 0;
		int c = 0;
		int sum = 0;
		
		for(int i = 0; i < K; i +=n )
		{
				System.out.println("Please add a number: ");
			n = sc.nextInt();
			c++;
			sum +=n;
			
		}
		
		System.out.println("You added " + c + " number");
		int a = sum/c;
		
		System.out.println("Average arithmetic: " + a);
	
		
		
		
	}

}
